<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>04_京东仿例</title>
    <link rel="stylesheet" href="fonts/jd/iconfont.css">
    <link rel="stylesheet" href="lib/swiper/swiper-bundle.min.css">
    <link rel="stylesheet" href="css/04.css">
</head>

<body>
    <!-- 头部 -->
    <header>
        <span class="header-menu iconfont icon-ego-menu"></span>
        <!-- 头部-搜索 -->
        <div class="search-box">
            <span class="search-box-jd iconfont icon-jd"></span>
            <span class="search-split">分割线</span>
            <span class="search-box-search iconfont icon-search"></span>
            <span class="search-text">搜索一哈</span>
        </div>
        <a href="#">登录</a>
    </header>

    <!-- 内容 -->
    <main>
        <!-- 内容-轮播 -->
        <section class="swiper">
            <div class="swiper-container">
                <div class="swiper-wrapper">
                    <div class="swiper-slide"><img src="images/jd_001.jpg" alt="jd_img"></div>
                    <div class="swiper-slide"><img src="images/jd_002.jpg" alt="jd_img"></div>
                    <div class="swiper-slide"><img src="images/jd_003.jpg" alt="jd_img"></div>
                    <div class="swiper-slide"><img src="images/jd_004.jpg" alt="jd_img"></div>
                    <div class="swiper-slide"><img src="images/jd_005.jpg" alt="jd_img"></div>
                </div>
                <!-- 如果需要分页器 -->
                <div class="swiper-pagination"></div>
            </div>
        </section>

        <!-- 内容-商品列表 -->
        <ul>
            <script>
                for (let i = 0; i < 20; i++) {
                    document.write(`
                    <li>
                        <div>
                            <img src="images/mobile_test.png" alt="test">
                            <p>test online</p>
                        </div>
                    </li>
                    `);
                }
            </script>
        </ul>
    </main>
    <!-- 底部 -->
    <footer>
        <div class="footer-btn on">
            <span class="iconfont icon-jingdong"></span>
            <p>首页</p>
        </div>
        <div class="footer-btn">
            <span class="iconfont icon-category"></span>
            <p>分类</p>
        </div>
        <div class="footer-btn">
            <span class="iconfont icon-jingxi"></span>
            <p>京喜</p>
        </div>
        <div class="footer-btn">
            <span class="iconfont icon-cart"></span>
            <p>购物车</p>
        </div>
        <div class="footer-btn">
            <span class="iconfont icon-login"></span>
            <p>未登录</p>
        </div>
    </footer>

    <!-- js -->
    <script src="lib/swiper/swiper-bundle.min.js"></script>
    <script src="js/04.js"></script>
</body>

</html>